<?php $user = $session->read('User');
	$isedit=$action->checkPermissions($user,"confirm");
		 ?>
</style>

<div class="right_side_operate_area">
	<div class="right_side_title">
		
    	<?php if($isedit){ ?>
		<div class="right item_add_btn"><?php echo $html->link('添加', 'edittalstack');?></div>
		<?php }else{
				echo '<div class="right enableaction">';
				echo "<a>添加</a>";
				echo '</div>';
			}
		 ?>
		<div class="clear"></div>
	</div>
</div>
<div class="right_side_scollbar">
	<div class="detail_info_panel">
		<div class="items_list">
			<div class="talstack_items">
				<?php echo $tree?>
			</div>
		</div>
	</div>
</div>
<?php echo $this->element('confirm',array("title"=>"删除提示","message"=>"你确定要删除吗？")) ?>
<script>
var webpath=$("#getpath").attr('href');
function deltype(obj,id)
{
	$(".confirm_model").dialog( "open" );
	$("#ok").click(function() {
		deltypes(obj,id);
		$(".confirm_model").dialog( "close" );
	});
	return false;
}
function deltypes(obj,id)
{
	$(obj).parent().parent().remove();
	$.ajax({     	   
	        url: webpath+'types/deltalstack/'+id, 
	        success:function(data){	 
	        showmessage("删除成功");       	
	        }
	        	         
	     });
}
</script>